/* eslint-disable no-undef */
const fs = require('fs');
const util = require('util');

let filePath = '../.prettierrc.json'

fs.readFile(filePath, (err, data) => {
    if (err) throw err;
    console.log("01 data", data.toString())
})

let mineReadFile = util.promisify(fs.readFile)

mineReadFile(filePath).then((value, err) => {
    console.log("02 value", value.toString())
    console.log("02 err", err)
})

mineReadFile(filePath).then((value, err) => {
    console.log("03 value", value.toString())
    console.log("03 err", err)

})